﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MethodWorx.CMS.TemplateLanguage.Parsers
{
    public class DocTypeParser : IParser
    {
        public object Parse(Web.CmsRequestContext context, IEnumerable<object> stack, Dictionary<string, object> parameters)
        {
            return "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
        }

        public string Name
        {
            get { return "DocType"; }
        }

        public string Namespace
        {
            get { return "Template"; }
        }

        public string[] Parameters
        {
            get { return new string [] { "Type" }; }
        }
    }
}
